package com.xinpu.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinpu.entity.TDepartment;
import org.apache.ibatis.annotations.Param;

/**
 * DepartmentMapper
 *
 * @author ayuan
 * @date 2021/5/18
 */
public interface DepartmentMapper {

    /**
     * 部门列表
     *
     * @param page
     * @param tenantId
     * @return
     */
    @SqlParser(filter = true)
    IPage<TDepartment> getList(Page<TDepartment> page, @Param("tenantId") String tenantId);
}
